package cn.tedu.spring.dibase;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestBook {
    public static void main(String[] args) {
        ApplicationContext context=new ClassPathXmlApplicationContext("bean-di.xml");
        Book book=(Book)context.getBean("bookXml","cn.tedu.spring.dibase.Book");
        System.out.println(book);
    }
}
